package com.demo.model;

import com.baomidou.mybatisplus.annotation.*;
import com.demo.base.*;
import com.fasterxml.jackson.annotation.*;
import io.swagger.annotations.*;
import lombok.*;
import lombok.experimental.*;
import org.hibernate.annotations.*;
import org.springframework.data.annotation.*;
import org.springframework.data.jpa.domain.support.*;

import javax.persistence.*;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.*;
import java.time.*;




@Data
@Accessors(chain = true)
@Entity
@TableName
@Where(clause = "deleted = 0")
public class Model extends BaseModel {


    @Column(name = "nick_name")
    @TableField(value = "nick_name")
    private String name;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @LastModifiedDate
    private LocalDateTime updateTime;

    @CreatedBy
    private String createBy;

    @LastModifiedBy
    private String updateBy;

    @TableLogic
    private Integer deleted;

    @TableField(exist = false)
    @Transient
    private String exist;

}
